<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
namespace AlibabaCloud\Client\Filter;

class Filter
{
    public static function name($name)
    {
        if(!is_string($name)) {
            throw new \AlibabaCloud\Client\Exception\ClientException("Name must be a string", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        if($name === "") {
            throw new \AlibabaCloud\Client\Exception\ClientException("Name cannot be empty", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        return $name;
    }
    public static function value($value)
    {
        if(!is_numeric($value) && !is_string($value)) {
            throw new \AlibabaCloud\Client\Exception\ClientException("Value must be a string or int", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        if($value === "") {
            throw new \AlibabaCloud\Client\Exception\ClientException("Value cannot be empty", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        return $value;
    }
}

?>